package cate.common.table.res.furniturecall.sheet;

import cate.common.table.ESheet;
import cate.common.table.res.furniturecall.row.FurnitureGuranteeRow;

public class FurnitureGuranteeSheet extends ESheet<FurnitureGuranteeRow> {
    @Override
    public String getSheetName() {
        return "卡池分组";
    }

    /**
     * 根据召唤模式和召唤次数判断是否需要作弊
     */
    public FurnitureGuranteeRow getQ4Row(int times) {
        if (get(1).guranteeTimes <= times) {
            return get(1);
        }
        return null;
    }

    public FurnitureGuranteeRow getQ5Row(int times) {
        if (get(2).guranteeTimes <= times) {
            return get(2);
        }
        return null;
    }
}
